import React from "react";
import {Route, Switch} from "react-router-dom";

import Make from "../component/Make";

import Grid from "./demo/Grid";
import List from "./demo/List";
import Form from "./demo/FormExample";
import Column from "./demo/Column";

import Exit from "./pages/Exit";
import Login from "./pages/Login";

/**
 * 路由列表
 */
const Routes = () => (<Switch>
    <Route path="/" component={()=> {return "Index Page";}} exact={true}/>
    <Route path="/grid" component={Grid} exact={true} />
    <Route path="/list" component={List} exact={true}/>
    <Route path="/column" component={Column} exact={true}/>
    <Route path="/form" component={Form} exact={true}/>

    <Route path="/exit" component={Exit} exact={true}/>
    <Route path="/login" component={Login} exact={true}/>

    {/*404路由*/}
    <Route component={Make.Error}/>
</Switch>);

export default Routes;